package com.jinly.ryder.monitor.config;

import com.jinly.ryder.monitor.service.model.MonitorKeyType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Set;

@Data
@ConfigurationProperties(prefix = "devops.monitor")
public class MonitorProperties {

    private Collect collect;
    private clean clean;

    @Data
    public static class clean {
        private boolean enable = false;
        private String cron;
        private Integer batchSize = 5000;
        private Integer maxDay = 10;
    }

    @Data
    public static class Collect {
        private boolean enable = false;
        private String cron;
        private Set<MonitorKeyType> keys;
    }
}
